﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TripletSegmentationGUI
{
    public class GAParameters: DpParameters
    {


        public int generations { get; set; }
        public int population { get; set; }
        public int CrossOverPercentValue { get; set; }  
        public int MutationFractionPercentValue{ get; set; }
        public int NumTopIndviduals{ get; set; }
        public double alphanumericUpDown1{ get; set; }

        public  override StringBuilder GetParamsNames()
        {
            StringBuilder buffer = new StringBuilder();
            buffer = base.GetParamsNames();
            buffer.Append("generations" + "\t" +
                          "population" + "\t"+
                          "NumTopIndviduals"+"\t"+
                          "CrossOver"+"\t"+
                          "Mutation"+"\t"+
                          "Alpa"+"\t");
            return buffer;
        }
        public override StringBuilder GetParamsValue()
        {
            StringBuilder buffer = new StringBuilder();
            buffer = base.GetParamsValue();
            buffer.Append(generations + "\t" + 
                          population + "\t"+
                            NumTopIndviduals + "\t"+
                              CrossOverPercentValue + "\t"+
                                MutationFractionPercentValue + "\t"+
                                alphanumericUpDown1 + "\t");
            return buffer;
        }

        public  override StringBuilder ToString()
        {

            StringBuilder buffer = new StringBuilder();
            buffer=base.ToString();
            buffer.Append("generations=" + generations);
            buffer.Append("\r\n");
            buffer.Append("population =" + population);
            buffer.Append("\r\n");
            return buffer;
        }
    }
}
